package com.gzyj.video.config;

import lombok.extern.slf4j.Slf4j;
import org.apache.ftpserver.FtpServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class InitFtpServer implements CommandLineRunner {

    @Autowired
    private FtpServer server;

    @Override
    public void run(String... args) throws Exception {
        server.start();
        log.info(">>>>>>>ftp start success ");
    }
}